package com.collectplus.express.model;

import java.io.Serializable;

/**
 * Created by joker on 2018/5/18.
 */
public class CalculatePriceBean implements Serializable {
    /**********上门普通寄件************************/
    private double cost = 0;//总共价格  同城也在使用
    private double coupon1 = 0;//一公斤的价格
    private String coupon = "";//同城的也在使用 ，邮票的价格
    private double coupon3 = 0;//三公斤邮票价格
    private double simplePrice = 0;//上门起始价格
    private double flowPrice = 0;//超出每公斤的价格

    /*********************同城寄件价格********************/
    private double startPrice;//起始价格
    private double distance;//超出的距离
    private double totalPrice;
    private String distanceTotalDesc;//"0.3公里",
    private double distancePrice;
    private double weight;
    private double weightTotal;//使用次重量
    private String distanceDesc;//"0公里",
    private double coupon5;// "12.9",
    private String timeDesc;//预计1.0小时到达",
    private double distanceTotal;//0.3,
    private double weightPrice;//":0
    private SameCityPriceBean cgp;//需要计算的价格规则

    public double getCost() {
        return cost;
    }

    public void setCost(double cost) {
        this.cost = cost;
    }

    public double getCoupon1() {
        return coupon1;
    }

    public void setCoupon1(double coupon1) {
        this.coupon1 = coupon1;
    }

    public String getCoupon() {
        return coupon;
    }

    public void setCoupon(String coupon) {
        this.coupon = coupon;
    }

    public double getCoupon3() {
        return coupon3;
    }

    public void setCoupon3(double coupon3) {
        this.coupon3 = coupon3;
    }

    public double getSimplePrice() {
        return simplePrice;
    }

    public void setSimplePrice(double simplePrice) {
        this.simplePrice = simplePrice;
    }

    public double getFlowPrice() {
        return flowPrice;
    }

    public void setFlowPrice(double flowPrice) {
        this.flowPrice = flowPrice;
    }

    public double getStartPrice() {
        return startPrice;
    }

    public void setStartPrice(double startPrice) {
        this.startPrice = startPrice;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getDistanceTotalDesc() {
        return distanceTotalDesc;
    }

    public void setDistanceTotalDesc(String distanceTotalDesc) {
        this.distanceTotalDesc = distanceTotalDesc;
    }

    public double getDistancePrice() {
        return distancePrice;
    }

    public void setDistancePrice(double distancePrice) {
        this.distancePrice = distancePrice;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getWeightTotal() {
        return weightTotal;
    }

    public void setWeightTotal(double weightTotal) {
        this.weightTotal = weightTotal;
    }

    public String getDistanceDesc() {
        return distanceDesc;
    }

    public void setDistanceDesc(String distanceDesc) {
        this.distanceDesc = distanceDesc;
    }

    public double getCoupon5() {
        return coupon5;
    }

    public void setCoupon5(double coupon5) {
        if (coupon5 == -1) {
            coupon5 = 0;
        }
        this.coupon5 = coupon5;
    }

    public String getTimeDesc() {
        return timeDesc;
    }

    public void setTimeDesc(String timeDesc) {
        this.timeDesc = timeDesc;
    }

    public double getDistanceTotal() {
        return distanceTotal;
    }

    public void setDistanceTotal(double distanceTotal) {
        this.distanceTotal = distanceTotal;
    }

    public double getWeightPrice() {
        return weightPrice;
    }

    public void setWeightPrice(double weightPrice) {
        this.weightPrice = weightPrice;
    }

    public SameCityPriceBean getCgp() {
        return cgp;
    }

    public void setCgp(SameCityPriceBean cgp) {
        this.cgp = cgp;
    }
}
